package EjemplosClasesComunes;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class ClaseFinDeFichero {
	public static void main (String[] args){
		//File file = new File("C:\\javaruben\\JSE_Modulo2\\src\\EjemplosMame2Nov\\ClaseJava.txt");
		File file = new File("ClaseJava.txt");
		try {
			BufferedReader in = new BufferedReader ( new FileReader(file));
			String s = in.readLine();
			while( s != null){
				System.out.println("Lectura: " + s);
				s = in.readLine();
			}
			in.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
		
	}
}
